home *** CD-ROM | disk | FTP | other *** search
- Path: news.deltanet.com!usenet
- From: mickeyw@deltanet.com (Mickey Williams)
- Newsgroups: comp.lang.c++
- Subject: Re: __beginthreadex error
- Date: 22 Feb 1996 19:19:35 GMT
- Organization: Delta Internet Services, Anaheim, CA
- Message-ID: <4gifk7$8ig@news2.deltanet.com>
- References: <4gf8gd$6r9@linus.mitre.org>
- NNTP-Posting-Host: lkf0167.deltanet.com
- X-Newsreader: WinVN 0.92.6+
-
- In article <4gf8gd$6r9@linus.mitre.org>, costello@mbunix.mitre.org (Roger L Costello) says:
- >
- >Hi Folks,
- > I am new to MS VC++ so bear with me. I am writing a simple
- >console application. I am also trying to learn MFC so I have a
- >program that uses a couple of MFC classes (CFrameWnd and CMainWIndow).
- >
- > The problem is that when I try to build the program I get the
- >following error:
- >
- >nafxcwd.lib (thrdcore.obj): error LNK2001: unresolved external symbol
- > "__beginthreadex"
- >
- >I also get the error:
- >
- >nafxcwd.lib (thrdcore.obj): error LNK2001: unresolved external symbol
- > "__endthreadex"
- >
- >Apparently I need to include some file. What file?
-
-
- You must set up your project to include the MFC libs. By default,
- console projects don't use MFC. In the build setting dialog, there
- is an option for how MFC should be used by the project. It's
- currently set to not use MFC. Change it to use MFC either
- statically or as a DLL.
-
- Sorry I can't be more precise, I've got VC4.0 on my machine.
-
- >
- >In general, can I use MFC in console applications? Is there some
- >way of setting flags during a build?
-
- Yes. Yes, see above.
-
- ---
- Mickey Williams CTI, CSTA, TAPI, MFC, PLEX, MOUSE
- Author - Essential Visual C++ 4
- - Develop a Professional Visual Visual C++ Application in 21 Days
- - Waite Group Press Visual C++ How-To (Co-Author)
- - A Windows NT book to be named later (Co-Author)
-